home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1997 February: Technology Seed / Mac Tech Seed Feb '97.toast / OpenDoc 1.2b2c1 / Implementation / Memory / MemMgrPv.h < prev    next >
Encoding:
C/C++ Source or Header  |  1997-02-13  |  1.6 KB  |  83 lines  |  [TEXT/MPS ]

  1. /*
  2.     File:        MemMgrPv.h
  3.  
  4.     Contains:    Private API for memory manager
  5.  
  6.     Owned by:    Jens Alfke
  7.  
  8.     Copyright:    © 1994 - 1996 by Apple Computer, Inc., all rights reserved.
  9.  
  10.     Change History (most recent first):
  11.     
  12.          <3>    27.09.1996    NP        1386083: Interface to new private routines
  13.          <2>     9/13/96    jpa        1371387: Speed optimizations.
  14.          <4>      8/4/95    DM        Leak detection [1267956]
  15.          <3>    10/24/94    jpa        Constness [1194286].
  16.          <2>     9/29/94    RA        1189812: Mods for 68K build.
  17.          <1>     9/14/94    jpa        first checked in
  18.  
  19.     To Do:
  20.     In Progress:
  21.         
  22. */
  23.  
  24.  
  25. #ifndef _MEMMGRPV_
  26. #define _MEMMGRPV_
  27. #pragma once
  28.  
  29. #ifndef _MEMMGR_
  30. #include "MemMgr.h"
  31. #endif
  32.  
  33. #ifndef _BESTFITH_
  34. #include "BestFitH.h"
  35. #endif
  36.  
  37.  
  38. struct MemHeap {        // All this does is keep scpp quiet; this is a bogus type
  39. };
  40.  
  41.  
  42. class BestFitHeap;
  43.  
  44.  
  45. //==============================================================================
  46. // GLOBAL VARIABLES
  47. //==============================================================================
  48.  
  49. extern mmboolean     gHaveSOM;            // Is SOM installed?
  50.  
  51. extern BestFitHeap    *gDefaultHeap;
  52.  
  53.  
  54. #if MM_DEBUG
  55. extern mmboolean gValidate;
  56. extern mmboolean gHeapChecking;
  57. #endif
  58.  
  59.  
  60. #ifdef MEASURE_SOM
  61. extern size_t gSOMTotal;
  62. #endif
  63.  
  64.  
  65. //==============================================================================
  66. // FUNCTIONS
  67. //==============================================================================
  68.  
  69.  
  70. const char*    BasicValidatePtr( const void *p, mmboolean mustBeInHeap = kMMTrue );
  71.  
  72. BestFitHeap*    GetHeap( const void* block, const char *op );
  73.  
  74. void    MMSetPlatformBlockMemFullMark();
  75. void    MMUnsetPlatformBlockMemFullMark();
  76.  
  77. void    MMSetPlatformHandleMemFullMark();
  78. void    MMUnsetPlatformHandleMemFullMark();
  79.  
  80.  
  81.  
  82.  
  83. #endif